#!/usr/bin/python

from pyopencv import *


def main():
    img=imread('4.jpg')
    img2=Mat(img.size(),CV_8UC3);
    imgL=Mat(img.size(),CV_8UC3);
    imga=Mat(img.size(),CV_8UC3);
    imgb=Mat(img.size(),CV_8UC3);
    img3=Mat(img.size(),CV_8UC3);

    cvtColor(img,img2,CV_RGB2Lab);
    
    split(img2,{});
    namedWindow("abc",1)
    threshold(img,img2,160,255,1);
    imshow("abc",img2)
    waitKey(0)
    

if __name__ == '__main__':
    main()

